//Param
BTC_p_time      = (paramsArray select 0);
BTC_p_load      = (paramsArray select 1);
BTC_enemy_n     = (paramsArray select 2);
BTC_p_army      = (paramsArray select 3);
BTC_p_patrol    = (paramsArray select 4);
BTC_p_n_patrol  = (paramsArray select 5);
BTC_p_recapping = (paramsArray select 6);
BTC_p_arty      = (paramsArray select 7);
BTC_p_skill     = (paramsArray select 8);
BTC_AI_skill    = (paramsArray select 9)/10;
BTC_p_HC        = (paramsArray select 10);
BTC_p_track_sys = (paramsArray select 11);
BTC_p_rev       = (paramsArray select 12);
BTC_p_rev_time  = (paramsArray select 13);
BTC_p_rally     = (paramsArray select 14);
BTC_def_recr    = (paramsArray select 15);
BTC_debug       = (paramsArray select 16);if (!isMultiplayer) then {BTC_debug = 1;};
/////

BTC_main_city = [BTC_city_1,BTC_city_2,BTC_city_3,BTC_city_4,BTC_city_5,BTC_city_6,BTC_city_7,BTC_city_8,BTC_city_9,BTC_city_10,BTC_city_11,BTC_city_12,BTC_city_13,BTC_city_14,BTC_city_15,BTC_city_16,BTC_city_17,BTC_city_18,BTC_city_19,BTC_city_20];
BTC_sm_poss = [BTC_sm_pos_1,BTC_sm_pos_2,BTC_sm_pos_3,BTC_sm_pos_4,BTC_sm_pos_5,BTC_sm_pos_6,BTC_sm_pos_7,BTC_sm_pos_8,BTC_sm_pos_9,BTC_sm_pos_10,BTC_sm_pos_11,BTC_sm_pos_12,BTC_sm_pos_13];

/////
BTC_house_not_available = [];
BTC_player_side = west;
BTC_enemy_side  = independent;

BTC_fob_materials = ["Land_Cargo20_military_green_F"];
BTC_fob_sign = "Land_Cargo_HQ_V1_F";
BTC_range_name = 30;

//Arty - AI
BTC_type_mortar           = "I_Mortar_01_F";
BTC_arty_dispersion       = 60;
BTC_arty_salvo            = 3;
BTC_arty_reload           = 120;

BTC_enemy_men             = ["DRI_Rifleman","O_Soldier_base_F"];
BTC_friendly_men          = "B_Soldier_base_F";
if (BTC_p_rev == 2) then
{
	BTC_r_new_system   = 2;//for dialog
	if (isServer) then
	{
		BTC_vehs_mobile_west_str = [];publicVariable "BTC_vehs_mobile_west_str";
		BTC_vehs_mobile_east_str = [];publicVariable "BTC_vehs_mobile_east_str";
		BTC_vehs_mobile_guer_str = [];publicVariable "BTC_vehs_mobile_guer_str";
		BTC_vehs_mobile_civ_str = [];publicVariable "BTC_vehs_mobile_civ_str";
	};
	if (!isDedicated) then
	{
		BTC_respawn_marker = format ["respawn_%1",playerSide];
		if (BTC_respawn_marker == "respawn_guer") then {BTC_respawn_marker = "respawn_guerrila";};
		BTC_r_base_spawn = "Land_HelipadEmpty_F" createVehicleLocal getMarkerPos BTC_respawn_marker;
	};
};
if (isServer) then
{
	BTC_HC_name = "";BTC_HC_id = -2;
	BTC_city_under_attack = [];
	BTC_city_clear = [];publicVariable "BTC_city_clear";
	BTC_sm_pos_selected = objNull;
	BTC_sm_assigned = false;publicVariable "BTC_sm_assigned";
	BTC_sm_aborted = false;
	BTC_sm_PVEH = false;publicVariable "BTC_sm_PVEH";
	BTC_sm_id = 0;//publicVariable "BTC_sm_id";
	BTC_fob_placed = [];publicVariable "BTC_fob_placed";//Till nearestObjects will work again
	BTC_fob_id = 0;publicVariable "BTC_fob_id";
	BTC_m_PVEH = [];publicVariable "BTC_m_PVEH";
	BTC_to_server = [];publicVariable "BTC_to_server";
	BTC_rally_point_deployed = false;publicVariable "BTC_rally_point_deployed";
	BTC_players_uids = [];
	BTC_veh_under_repair = [];
	BTC_s_sitreps = [[],[]];
	BTC_defenses = [BTC_AA_1,BTC_AA_2,BTC_AA_3,BTC_AA_4];
	BTC_recapping_time = 57600;
}
else
{
	BTC_s_sitreps = [[],[]];
};
//Construction dlg
BTC_construction_array =
[
	[
		"Fortifications",
		"Static",
		"Ammobox",
		"Vehicles",
		"Autonomous",
		"Support"
	],
	[
		[
			//"Fortifications"
			"Land_BagBunker_Small_F",
			"Land_BagFence_Corner_F",
			"Land_BagFence_End_F",
			"Land_BagFence_Long_F",
			"Land_BagFence_Round_F",
			"Land_BagFence_Short_F",
			"Land_HBarrier_1_F",
			"Land_HBarrier_3_F",
			"Land_HBarrier_5_F",
			"Land_HBarrierBig_F",
			"Land_Razorwire_F",
			"Land_CncBarrier_F",
			"Land_CncBarrierMedium_F",
			"Land_CncBarrierMedium4_F",
			"Land_CncWall1_F",
			"Land_CncWall4_F",
			"Land_Crash_barrier_F",
			"Land_Mil_ConcreteWall_F",
			"Land_Mil_WallBig_4m_F",
			"Land_Mil_WallBig_Corner_F"		
		],
		[
			//"Static"
			"B_static_AT_F",
			"B_static_AA_F",
			"B_GMG_01_A_F",
			"B_GMG_01_high_F",
			"B_GMG_01_F",
			"B_HMG_01_A_F",
			"B_HMG_01_high_F",
			"B_HMG_01_F",
			"B_Mortar_01_F"
		],
		[
			//"Ammobox"
			"Box_NATO_Ammo_F",
			"Box_NATO_AmmoOrd_F",
			"Box_NATO_Grenades_F",
			"Box_NATO_Support_F",
			"Box_NATO_Wps_F",
			"Box_NATO_WpsLaunch_F",
			"Box_NATO_WpsSpecial_F",
			"Box_NATO_AmmoVeh_F",
			"B_supplyCrate_F",
			"x39_medicBox"
		],
		[
			//Vehicles
			"B_Quadbike_01_F",
			"B_MRAP_01_F",
			"B_MRAP_01_hmg_F",
			"B_Truck_01_transport_F"
		],
		[
			//Autonomous
			"B_UAV_02_CAS_F",
			"B_UAV_02_F",
			"B_UGV_01_F",
			"B_UGV_01_rcws_F"		
		],
		(
			//Support
			BTC_fob_materials + ["B_Truck_01_ammo_F","B_Truck_01_fuel_F","B_Truck_01_medical_F","B_Truck_01_Repair_F"]
		)
	]
];
//ACRE
if (isClass(configFile >> "cfgPatches" >> "acre_main")) then 
{
	_main_class = BTC_construction_array select 0;
	_sub_class = BTC_construction_array select 1;
	_ammo = _sub_class select 2;
	_ammo = _ammo + ["ACRE_Radiobox"];
	_sub_class_1 = [_sub_class select 0,_sub_class select 1,_ammo,_sub_class select 3,_sub_class select 4,_sub_class select 5];
	BTC_construction_array = [_main_class,_sub_class_1];
};
//Units
BTC_recruitable_units     = ["B_crew_F","B_helicrew_F","B_soldier_LAT_F","B_soldier_repair_F","B_Soldier_F","B_soldier_M_F","B_Soldier_GL_F","B_soldier_exp_F","B_soldier_AR_F","B_medic_F"];
BTC_get_units_type =
{
	_type_units_n = _this select 0;
	switch (_type_units_n) do 
	{
		case 1:
		{
			BTC_enemy_side            = independent;
			BTC_type_units            = ["DRI_Rifleman","DRI_AutomaticRifleman","DRI_RPG7Soldier","DRI_Grenadier","DRI_MachineGunner"];
			BTC_type_TL               = "DRI_SquadLeader";
			BTC_type_crewmen          = "DRI_Rifleman";
			BTC_type_pilot            = "SUD_RU_Soldier_HPilot";
			BTC_type_medic            = "DRI_Medic";
			BTC_type_sniper           = "DRI_Marksman";
			BTC_type_para             = ["SUD_RU_Soldier","SUD_RU_Soldier_AR","SUD_RU_Soldier_AT","SUD_RU_Soldier_TL"];
			BTC_type_vehicles         = ["RU_APC_BTR100_F","dri_Offroad_01s_armed_F"];
			BTC_type_motorized        = ["RU_APC_BTR100_F","dri_Offroad_01s_armed_F"];
			BTC_type_heli             = ["SUD_KA60_RU"];
			BTC_type_plane			  =	[];
			BTC_type_heli_transport   = ["SUD_KA60_RU"];
		};
		case 2:
		{
			BTC_enemy_side            = east;
			BTC_type_units            = ["O_Soldier_F","O_Soldier_AR_F","O_soldier_exp_F","O_Soldier_GL_F","O_soldier_repair_F","O_Soldier_LAT_F"];
			BTC_type_TL               = "O_Soldier_TL_F";
			BTC_type_crewmen          = "O_Soldier_F";
			BTC_type_pilot            = "O_helipilot_F";
			BTC_type_medic            = "O_medic_F";
			BTC_type_sniper           = "O_Sniper_F";
			BTC_type_para             = ["O_Soldier_F","O_Soldier_AR_F","O_soldier_exp_F","O_Soldier_GL_F","O_soldier_repair_F","O_Soldier_LAT_F"];
			BTC_type_vehicles         = ["O_MRAP_02_F","O_MRAP_02_hmg_F","O_MRAP_02_gmg_F","O_APC_Tracked_02_cannon_F","O_APC_Wheeled_02_rcws_F","O_MBT_02_cannon_F"];
			BTC_type_motorized        = ["O_APC_Tracked_02_cannon_F","O_APC_Wheeled_02_rcws_F","O_MRAP_02_F","O_MRAP_02_hmg_F","O_MRAP_02_gmg_F","O_Truck_02_transport_F","O_Truck_02_covered_F"];
			BTC_type_heli             = ["O_Heli_Attack_02_black_F"];
			BTC_type_plane            = ["I_Plane_Fighter_03_CAS_F"];
			BTC_type_heli_transport   = ["O_Heli_Light_02_F"];
		};
	};
	true
};
[BTC_p_army] call BTC_get_units_type;//modifica quando fai i parametri

BTC_side_missions =
[
	//0
	[
		"Officer",//Title
		"An high valuable target has been spotted in <marker name='%1'>this</marker> area, find him and neutralized him!",//Desc
		"The officer has been killed!",
		"I_officer_F"
	],
	//1
	[
		"Prisoners",//Title
		"The enemies are holding some civilians as prisoners in <marker name='%1'>this</marker> area. Get them back to the base in safety!",//Desc
		"Prisoners are in safety!",
		["C_man_polo_1_F","C_man_polo_2_F","C_man_polo_3_F","C_man_polo_4_F","C_man_polo_5_F","C_man_polo_6_F"]
	],
	//2
	[
		"Intel",//Title
		"A recon team spotted a suitcase with important informations in <marker name='%1'>this</marker> area. Find it and get it back to the base!",//Desc
		"The intel has been retrieved!",
		"Land_Suitcase_F"	
	],
	//3
	[
		"Radio Tower",//Title
		"An enemy radio tower has been spotted in <marker name='%1'>this</marker> area. Destroy it!",//Desc
		"The radio tower has been destroyed!",
		"Land_TTowerBig_1_F"	
	],
	//4
	[
		"Mortar Squad",//Title
		"An enemy mortar squad has been deployed in <marker name='%1'>this</marker> area. Eliminate the threat!",//Desc
		"The mortar threat has been eliminated!"
	],
	//5
	[
		"MRAP",//Title
		"The enemy are developing a new MRAP, find the prototype and destroy it! It should be hidden in <marker name='%1'>this</marker> area.",//Desc
		"The prototype has been destroyed!",
		"caf_tapv_50_ar"	
	]
];